using System;
using System.Collections.Generic;
using System.Text;

namespace Lab4
{
    public class Signal
    {
        public double[] GetExpSignal(int lowbound, int upperbound, int n)
        {
            double[] signal= new double[n];
            double t;
            double step = (upperbound - lowbound) * 1.0 / n;
            for (int i = 0; i < n; i++)
            {
                t = lowbound + step * i;
                signal[i] = Math.Exp(-t);
            }
            return signal;
        }
    }
}
